import request from '@/utils/request'

// 仪器维修保养列表
export function getdeviceApplyList(data) {
    return request({
        url: `/deviceMaintain/deviceMaintain`,
        method: 'post',
        data
    })
}
// 仪器维修保养历史列表
export function deviceMaintainHistory(data) {
    return request({
        url: `/deviceMaintain/deviceMaintainHistory`,
        method: 'post',
        data
    })
}
//------------------------------------------------<<>>------------------------------------------------------

//维修/保养登记
export function add(data){
    return request({
        url:`/deviceMaintain/add`,
        method:`post`,
        data
    })
}

//仪器维修/保养记录详情
export function maintainList(data){
    return request({
        url:`/deviceMaintain/maintainList`,
        method:`post`,
        data
    })
}

//维修/保养修改
export function update(data){
    return request({
        url:`/deviceMaintain/update`,
        method:`post`,
        data
    })
}

// 删除
export function deletedelete(params) {
    return request({
        url: `/deviceMaintain/delete`,
        method: 'get',
        params
    })
}
